Skip to content

News sentiment study and $0 sentiment tracker - #46

Merged
ASCoding11 merged 3 commits into
mainfrom
claude/keen-tesla-shs956
Nov 28, 2026
Merged

ASCoding11 merged 3 commits into
mainfrom
claude/keen-tesla-shs956

Conversation

@ASCoding11

Copy link
Copy Markdown
Owner

Study (qtrade/research/news_sentiment.py, research task sentiment): every Benzinga article (headline + summary, at most 3 tagged stocks) is scored by word-list tone plus signed headline events. Each stock-day uses only news out by 9:25 New York and trades from the official open. Cells are sentiment × the stock's past-day / past-month relative move (terciles); targets are open→close and a 5-day hold, relative to the average stock. Directions are fixed on 2016-21 (|t| ≥ 2) and judged on 2022-26.

Result (research/latest/sentiment.md): 3 open-to-close cells pass training and 1 keeps its sign in test: positive news on a stock whose previous day was average (middle tercile), +4.9 bp train (t 2.8), +4.7 bp test (t 2.7), about 19 names a day. The 3-rule book has a test Sharpe of 0.36 at 0 bp but -1.48 at 5 bp per round trip, so costs eat it. No 5-day cell passes.

Tracker (qtrade/intraday/sentiment_sheet.py, sentiment-sheet.yml, clock 17:35 NY): $0 allocated, hypothetical $10,000, new "Sentiment tracker" tab. It scores the morning's news the same way and books the open-to-close rules that held up in test (fallback: all training rules, labelled) at the official open/close, hedged against the average stock.

Also: an empty rule set no longer crashes the study.

Tests: tests/test_news_sentiment.py (scoring, the 9:25 cutoff, terciles, finding a planted effect), tests/test_sentiment_sheet.py. The full suite passes.


Generated by Claude Code

Each stock-day's sentiment (word-list tone of headline + summary plus signed
headline events) from news out by 9:25 New York, traded from the official
open; cells by sentiment x yesterday's / the past month's relative move
(terciles); directions fixed on 2016-21, judged on 2022-26 at 0 and 5 bp.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NsPrq53XXinQsUZsWqeKht
Each weekday after the close: news out by 9:25 New York scored as in the
news_sentiment study, split by each stock's past day / month, and the
study's open-to-close rules booked at the official auction prices (hedged
against the average stock) on a hypothetical $10,000 in a 'Sentiment
tracker' tab. Clock 17:35 New York, cron backups.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NsPrq53XXinQsUZsWqeKht
…arch: sentiment]

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01NsPrq53XXinQsUZsWqeKht
@ASCoding11
ASCoding11 merged commit 211a6f8 into main Nov 28, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants